package com.jing.cloud.service.user.method.param;

import lombok.Data;
import lombok.NonNull;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * Created by 29017 on 2017/9/21.
 */
@Data
public class FindUserBean {
    @NonNull
    @Length(min = 2, max = 30)
    private String nickname;
    @Min(1)
    @Max(100)
    private int size = 20;
}
